using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework.Storage;
using LiquidFireArts.Wormhole.Misc;

namespace Unibot
{
    class Platform : Element
    {
        public Platform(Texture2D tx, Shape shp, Vector2 pos)
        {
            this.texture = tx;
            this.TypeA = new List<Shape>() { shp };
            this.TypeB = new List<Shape>();
            this.type = ElementType.Platform;
            this.physical_state = new PhysicalState();
            this.physical_state.position = pos;
            this.physical_state.friction_coeffecient = 0.9f;
            this.physical_state.elastic_coefficient = 0.5f;
            updateHitboxes(); // this only needs to happen on creation
        }
        public override void update(GameTime gt)
        { 
            // do nothing for regular platforms
        }

        public override void onCollisionWith(Element other, GameTime gt)
        {
            // do nothing for a regular platfom
        }

        public override void Draw(SpriteBatch sb)
        {
            sb.Draw(texture, physical_state.position, Color.White);
        }
    }
}
